package com.yangaobo.dto;

import com.yangaobo.constant.MC;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 杨奥博
 */
@Schema(description = "资产添加DTO")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ClubUpdateDTO implements Serializable {

    @Min(value = 1, message = "班级主键必须大于0")
    @Schema(description = "班级主键")
    @NotNull(message = "班级主键不能为空")
    @Min(value = 1, message = "班级主键必须大于0")
    private Long id;

    @Schema(description = " 班级名称")
    @Pattern(regexp = MC.Regex.TITLE_RE, message = MC.Regex.TITLE_RE_MSG)
    private String title;

    @Schema(description = " 班级标签")
    private List<String> tag;

    @Schema(description = "方向ID")
    @Min(value = 1, message = "方向ID必须大于0")
    private Long fkDirectionId;

    @Schema(description = " 开班时间")
    private LocalDateTime startTime;

    @Schema(description = " 预期结课时间")
    private LocalDateTime exceptedEndTime;

    @Schema(description = "实际结课时间")
    private LocalDateTime endTime;

    @Schema(description = "班级描述")
    @Pattern(regexp = MC.Regex.INFO_RE, message = MC.Regex.INFO_RE_MSG)
    private String info;
}
